package com.meida.module.bus.client.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.meida.common.mybatis.annotation.TableAlias;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 *
 *
 * @author flyme
 * @date 2020-09-26
 */
@Data
@Accessors(chain = true)
@TableName("bus_material_req_maindata")
@TableAlias("bbwpro")
@ApiModel(value="材料申请请求数据", description="")
public class BusMaterialReqMainData implements Serializable {

private static final long serialVersionUID=1L;

    @ApiModelProperty("100/200材料计划ID")
    private Long materialId;
    // --主表字段
    @ApiModelProperty("PMS材料申请计划ID")
    private Long purchaseId;
    @ApiModelProperty("PMS材料申请计划编码")
    private String purchaseNo;
    @ApiModelProperty("单据类型")
    private String documentType;
    @ApiModelProperty("项目编码")
    private String projectCode;
    @ApiModelProperty("项目名称")
    private String projectName;
    @ApiModelProperty("专业包代码")
    private String majorCode;
    @ApiModelProperty("专业包名称")
    private String majorName;
    @ApiModelProperty("工程包代码")
    private String packageNo;
    @ApiModelProperty("工程包名称")
    private String packageName;

    // --子表字段
    @ApiModelProperty("材料计划当前版本")
    private String ver;
//    @ApiModelProperty("100/200材料计划ID")
//    private Long materialPlanId;
    @ApiModelProperty("PMS材料申请计划明细ID")
    private Long purchaseDetailsId;
    @ApiModelProperty("WBS号")
    private String materialWbsCode;
    @ApiModelProperty("物料编码")
    private String materialCode;
    @ApiModelProperty("物料名称")
    private String materialName;
    @ApiModelProperty("计划数量")
    private String planQty;
    @ApiModelProperty("采购数量")
    private String planPurchaseCount;
    @ApiModelProperty("单位名称")
    private String measurementUnit;
    @ApiModelProperty("需求时间")
    private String receivedDate;
    @ApiModelProperty("班组编码")
    private String vendorCode;
    @ApiModelProperty("班组")
    private String vendorName;
    @ApiModelProperty("品牌")
    private String brandName;
    @ApiModelProperty("使用区域，部位")
    private String useArea;
    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("在途数量")
    private BigDecimal onLineNum;
    @ApiModelProperty("到货数量")
    private BigDecimal receiveNum;
    @ApiModelProperty("本次采购数量")
    private BigDecimal purchaseNum;
}
